import { House, Setting } from '@element-plus/icons-vue';
import { markRaw } from 'vue';

const menu = [
  {
    index: '/home',
    icon: markRaw(House),
    name: '首页',
    permission: '',
  },
  {
    index: 'system',
    icon: markRaw(Setting),
    name: '系统管理',
    permission: '',
    children: [
      {
        index: '/system/department',
        name: '部门管理',
        path: '',
        permission: '',
      },
      {
        index: '/system/user',
        name: '用户管理',
        path: '',
        permission: '',
      },
      {
        index: '/system/role',
        name: '角色管理',
        path: '',
        permission: '',
      },
    ],
  },
];
export interface IMenu {
  index: string;
  icon?: object;
  name: string;
  permission: string;
  path?: string;
  children?: IMenu[];
}
export { menu };
